package com.jx.gocomtask.webservice.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;
@Entity
@Table(name = "ext_remind_plan")
public class ExtRemindPlan implements Serializable{

	/**
	 * @Description: 
	 */
	private static final long serialVersionUID = 1L;
	//private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(ExtRemindPlan.class);
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
    @Column(name = "source_type")
    private Integer sourceType=0;
    
    @Column(name = "exec_time")
    private Date execTime;
    @OneToOne
	@JoinColumn(name="source_id")
	private ExtTaskMessage extTaskMessage;
    
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Integer getSourceType() {
		return sourceType;
	}
	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}
	public Date getExecTime() {
		return execTime;
	}
	public void setExecTime(Date execTime) {
		this.execTime = execTime;
	}
	@JsonIgnore
	public ExtTaskMessage getExtTaskMessage() {
		return extTaskMessage;
	}
	public void setExtTaskMessage(ExtTaskMessage extTaskMessage) {
		this.extTaskMessage = extTaskMessage;
	}
	
	
}
